// COnLine.h: interface for the COnLine class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CONLINE_H__231021EF_5B83_4021_AE81_C27740319328__INCLUDED_)
#define AFX_CONLINE_H__231021EF_5B83_4021_AE81_C27740319328__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "IOnLine.h"

class CDMControlCenter;
class CSystemData;
class CCommSocket;

class COnLine  : public IOnLine
{
private:
	CSystemData* m_lnkSystemData;
	CCommSocket* m_lnkCommSocket;
	CString m_strSendData;
public:
	COnLine(CCommSocket* pCommSocket);
	virtual ~COnLine();
public:
	int SetAGV(CString strEQPID, BOOL bMode);
	int PortUnloading(CString strEQPID);
	int PortLoading(CString strEQPID);
	int BCRRead(CString strEQPID, const CString& strLOTID);
	int ReadyToWork(CString strEQPID, const CString& strLOTID);
	int WaferWorkStart(CString strEQPID, const CString& strWaferID, const CString& strSeq, const CString& strLOTID);
	int WaferWorkComplete(CString strEQPID, const CString& strWaferID, const CString& strSeq, const CString& strLOTID);
	int WorkComplete(CString strEQPID, const CString& strLOTID);
	int Alarm(CString strEQPID, const CString& strAlarmID, const CString& strAlarmDescription, BOOL bMode);
	void SetSendData(CString strSendData){ m_strSendData = strSendData;};
	CString GetSendData(){return m_strSendData;}
};

#endif // !defined(AFX_CONLINE_H__231021EF_5B83_4021_AE81_C27740319328__INCLUDED_)
